<h1>PDF</h1>

<?php
    echo " <script> window.open('pdf/generarpdf','','height=400,width=400'); </script>";
?>